//
//  RBURLConfig.h
//  RBDemoProj
//
//  Created by Lan on 2018/2/11.
//  Copyright © 2018年 SummerTea. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSUInteger, RBURLEnvironment) {
    RBURLEnvironmentOnline,/**<线上*/
    RBURLEnvironmentTest,/**<开发*/
    RBURLEnvironmentQA,/**<QA*/
};
//设置应用启动首选网络环境
#define kCurrentEnvironment RBURLEnvironmentTest

@interface RBURLConfig : NSObject

//搞个单例,免重运行切网络环境,仅内存记录,不存硬盘
@property(nonatomic, assign) RBURLEnvironment currentEnvironment;
+ (instancetype)shareInstance;

/** 基础业务请求路径 */
- (NSString *)commonServiceBaseUrl;
/** 基础业务图片路径 */
- (NSString *)commonServicePicUrl;
/** xx业务请求路径 */
- (NSString *)xxServiceBaseUrl;
/** xx业务图片路径 */
- (NSString *)xxServicePicUrl;

/**
 * 返回全路径
 * service:业务类型
 * fileName:文件名称
 */
+ (NSString *)pathWithService: (NSInteger)service fileName: (NSString *)fileName;
+ (NSString *)adjustImageUrl: (NSString *)url;

@end

//集中定义文件名称,方便统一修改,不用NSString了,麻烦
//1.xxxx
#define kLoginPath @"format/follow"




